package components.ghost;

import images.Images;

import java.awt.Color;
import java.util.List;

import com.uqbar.vainilla.appearances.Appearance;
import com.uqbar.vainilla.appearances.Circle;
import com.uqbar.vainilla.appearances.Sprite;

import components.direction.Direction;
import components.pacman.Pacman;
import components.scenes.MapMatrix;
import components.scenes.Slot;

public class ChasingState extends GhostState {

	
	public ChasingState(Ghost ghost) {
		super(ghost);
	}
	
	protected List<Slot> getCurrentPath(){
		return this.getGhost().getCurrentPath();
	}
	protected void setCurrentPath(List<Slot> path){
		this.getGhost().setCurrentPath(path);
	}
	protected MapMatrix getMapMatrix(){
		return this.getGhost().getScene().getMapMatrix();
	}

	public double getSpeed() {
		return this.getGhost().getChasingSpeed();
	}

	public void onCollisionWithPacman(Pacman pacman){
		pacman.die();
	}

	public Appearance getAppaearance() {
		return this.getGhost().getChasingSprite();
	}
}
